package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author with葡萄成熟时
 * @version 1.0
 */
@Mapper
public interface SetmealDishMapper {

    /**
     * @description: 添加套餐相关菜品
     * @param:
     * @return:
     * @author Wait葡萄成熟时
     * @date: 下午12:53 2024/11/8
     */
    void addSetmealDish(List<SetmealDish> setmealDishes);


    /**
     * @description: 根据套餐id查询套餐菜品表相关菜品
     * @param:
     * @return:
     * @author Wait葡萄成熟时
     * @date: 下午12:52 2024/11/8
     */
    @Select("select * from setmeal_dish where setmeal_id=#{setmealId}")
    List<SetmealDish> selectSetmealDishBySetmealId(Long setmealId);

    /**
     * @description: 按套餐id删除套餐菜品表相关的信息
     * @param:
     * @return:
     * @author Wait葡萄成熟时
     * @date: 下午1:15 2024/11/8
     */
    void deleteSetmealDishBySetmealId(List<Long> setmealIds);

}
